﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template/TicketManagement.Master" AutoEventWireup="true" CodeBehind="Dashboard.aspx.cs" Inherits="TicketManagement.Home.Dashboard" %>

<%@ Register src="../Template/uHeader.ascx" tagname="uHeader" tagprefix="uc1" %>

<%@ Register src="../Template/uStaffMenu.ascx" tagname="uStaffMenu" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .dashboard
        {
            background-color: #FF6600 !important;
            color: #FFF !important;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="wrapper">
        <div class="clear10"></div>

        <uc1:uHeader ID="uHeader1" runat="server" />

        <div class="clear10"></div>

        <uc2:uStaffMenu ID="uStaffMenu1" runat="server" />

        <div class="clear10"></div>
        <div class="body">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr valign="top">
                        <td>
                            <div class="body">
                                <div class="col1 fl">
                                    <div class="box-toohot">
                                        <h3>Yêu cầu mới gửi</h3>
                                        <asp:GridView ID="listNewRequest" runat="server" CssClass="gridView" 
                                            ShowHeaderWhenEmpty="True" Width="100%" 
                                            AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" 
                                            PageSize="4" onpageindexchanging="listNewRequest_PageIndexChanging" 
                                            onsorting="listNewRequest_Sorting">
                                            <Columns>
                                                <asp:TemplateField HeaderText="Mã số">
                                                    <ItemTemplate>
                                                        <a href='/Ticket/TicketEdit.aspx?id=<%# Eval("TKT_ID") %>'><%# Eval("TKT_NUMBER") %></a>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="TKC_NAME" HeaderText="Lĩnh vực" 
                                                        SortExpression="TKC_NAME" />
                                                <asp:BoundField DataField="DEP_NAME" HeaderText="Gửi đến"/>
                                                <asp:BoundField DataField="TKT_TIMESTAMP" HeaderText="Thời gian" 
                                                    SortExpression="TKT_TIMESTAMP" />
                                                <asp:BoundField DataField="TKS_NAME" HeaderText="Trạng thái"/>
                                                <asp:BoundField DataField="OLN_DESC" HeaderText="Dịch vụ" 
                                                    SortExpression="OLN_DESC" />
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                    <div class="clear10"></div>
                                    <div class="clear"></div>
                                </div> 

                                <div class="col2 fr">
                                    <div class="box-toonew">
                                        <h3>Yêu cầu tôi xử lý</h3>
                                        <asp:GridView ID="listMyRequest" runat="server" CssClass="gridView" 
                                            ShowHeaderWhenEmpty="True" Width="100%" 
                                            AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" 
                                            PageSize="4" onpageindexchanging="listMyRequest_PageIndexChanging" 
                                            onsorting="listMyRequest_Sorting">
                                            <Columns>
                                                <asp:TemplateField HeaderText="Mã số">
                                                    <ItemTemplate>
                                                        <a href='/Ticket/TicketEdit.aspx?id=<%# Eval("TKT_ID") %>'><%# Eval("TKT_NUMBER") %></a>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="TKC_NAME" HeaderText="Lĩnh vực" 
                                                    SortExpression="TKC_NAME" />
                                                <asp:BoundField DataField="DEP_NAME" HeaderText="Gửi đến"/>
                                                <asp:BoundField DataField="TKT_TIMESTAMP" HeaderText="Thời gian" 
                                                    SortExpression="TKT_TIMESTAMP" />
                                                <asp:BoundField DataField="TKS_NAME" HeaderText="Trạng thái"/>
                                                <asp:BoundField DataField="OLN_DESC" HeaderText="Dịch vụ" 
                                                    SortExpression="OLN_DESC" />
                                            </Columns>
                                        </asp:GridView>
                                    </div>                            
                                </div>
                                <div class="clear"></div>
                            </div>            
                        </td>
                        <td width="10"></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</asp:Content>
